package com.leyou.item.service;

import com.leyou.common.utils.PageResult;
import pojo.Brand;

import java.util.List;

/**
 * Author: Saka
 * Date: 2019/1/15
 * Time: 21:00
 */
public interface BrandService {
    PageResult<Brand> queryBrandByPageAndSort(Integer page, Integer rows, String sortBy, Boolean desc, String key);

    void saveBrand(Brand brand, List<Long> cids);

    void updataBrand(Brand brand, List<Long> cids);

    void deleteByBrandId(Long bid);

    void deleteByCategoryBrandId(Long bid);

    Brand queryBrandById(Long brandId);

    List<Brand> queryBrandByCategory(Long cid);
}
